package com.baor.fegin;

import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@FeignClient(name = "garbageSys",path = "/garbageSys/team")
public interface TeamFegin {
    //添加代理商
    @PostMapping(value = "/addHolder")
    R addHolder(@RequestBody Map<String, Object> params);
    //代理商列表
    @PostMapping("/teamList")
    R getAllTeams(@RequestBody Map<String, Object> params);
}
